<?php
require_once('db.php');

$query = "SELECT * FROM `users`";

$result = mysql_query($query) or die(mysql_error());

while($user = mysql_fetch_object( $result)) {
  print_r($user->id);
  print_r($user->email);
  echo "\n\n";
}
